package com.qf.business.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.data.system.dto.PowerDto;
import com.qf.data.system.entity.Power;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PowerMapper extends BaseMapper<Power> {
        @Select("select *,(select power_name from power where id=p.pid) as parentName from power p")
        List<PowerDto> queryList();
}

